﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using HFController;

namespace HFWebApp
{
    public partial class zhao : HFController.BagePages
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            { 
                //6
                layer_List.DataSource = LawyerController.getController().getLawyerList(6, 1);
                layer_List.DataBind();

                //12歌在线律师
                online_layerList.DataSource = LawyerController.getController().getLawyerList(12, "LastLoginTime");
                online_layerList.DataBind();

                //9个人气律师
                layerRank_List.DataSource = LawyerController.getController().getLawyerList(12, "Hits");
                layerRank_List.DataBind();

                //10条已解决问题
                ask_List.DataSource = AskController.getController().getAskList(10, 1);
                ask_List.DataBind();

                //全部省份
                province_list.DataSource = CityController.getController().getProvinceList();
                province_list.DataBind();

                //省会城市
                cityLawyer_List.DataSource = CityController.getController().getProvinceCityList();
                cityLawyer_List.DataBind();
            }
        }
    }
}